package uvt.gui.mainframe.searchroute;

import javax.swing.JButton;

import uvt.gui.mainframe.object.command.Command;
import uvt.map.PositionsSettings;

public class ResetRoute extends JButton implements Command {
	
	public ResetRoute(String name) {
		super(name);
	}
	
	public void execute() {
		PositionsSettings posSettings = PositionsSettings.getInstance();
		posSettings.getTxtMyPosLat().setText("");
		posSettings.getTxtMyPosLon().setText("");
		posSettings.getTxtArrivePosLat().setText("");
		posSettings.getTxtArrivePosLon().setText("");	
		posSettings.cleanMap();
	}

}
